package com.three.storemanage.controller;

import com.three.core.entity.Car;
import com.three.core.vo.R;
import com.three.storemanage.service.CarService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @FileName: CarController
 * @Description:
 * @Author: GYX
 * @CreateTime: 2025/3/27 19:49
 * @Version: 1.0.0
 */
@RestController
@RequestMapping("/store/bindcar")
public class CarController {
    @Autowired
    private CarService carService;

    @PostMapping("/selectBindCar")
    public R<List<Car>> selectByStoreId(@RequestParam Integer storeId, @RequestParam Integer userId) {
        return carService.selectByStoreId(storeId, userId);
    }
}
